﻿
// CountdownToRestartDlg.h: 头文件
//

#pragma once

#include "StaticEx.h"
#include <memory>
#include <string>
#include "../Utils/WinRegistry.h"

namespace Poco {
	namespace Util {
		class WinRegistryKey;
	}
}
// CCountdownToRestartDlg 对话框
class CCountdownToRestartDlg : public CDialogEx
{
// 构造
public:
	CCountdownToRestartDlg(CWnd* pParent = nullptr);	// 标准构造函数

// 对话框数据
#ifdef AFX_DESIGN_TIME
	enum { IDD = IDD_COUNTDOWNTORESTART_DIALOG };
#endif

	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV 支持


// 实现
protected:
	HICON m_hIcon;

	void WriteRegistry();

	// 生成的消息映射函数
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	DECLARE_MESSAGE_MAP()
public:
	int m_nClock = 10;
	CFont m_font;
	CStaticEx* m_cTooltipText;

	afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
	afx_msg void OnTimer(UINT_PTR nIDEvent);

private:
	yzq::WinRegistry m_yunnyRegistry;

};
